name: py38
run_id: commands[4]
env CBS_HTBT_JSON: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/etc/config.json
env HOME: /home/jenkins
env LANG: C.UTF-8
env PATH: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/py38/bin:/opt/pyenv/bin:/tmp/venv-NnVW/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin
env PIP_DISABLE_PIP_VERSION_CHECK: 1
env PIP_USER: 0
env PYTHONHASHSEED: 3617600033
env PYTHONIOENCODING: utf-8
env PYTHONPATH: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/miss_htbt_service
env SSH_AGENT_PID: 2058
env SSH_AUTH_SOCK: ********************************
env TOX_ENV_DIR: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/py38
env TOX_ENV_NAME: py38
env TOX_PACKAGE: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/.tmp/package/1/miss_htbt_service-2.6.1.tar.gz
env TOX_WORK_DIR: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox
env VIRTUAL_ENV: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/py38
env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true
metadata pid: 3152
cwd: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master
allow: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/py38/bin/*:mkdir
cmd: pytest --junitxml xunit-results.xml --cov miss_htbt_service --cov-report xml --cov-report term tests --verbose
exit_code: 0
============================= test session starts ==============================
platform linux -- Python 3.8.14, pytest-8.3.5, pluggy-1.5.0 -- /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/.tox/py38/bin/python
cachedir: .tox/py38/.pytest_cache
rootdir: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master
configfile: pyproject.toml
plugins: cov-5.0.0
collecting ... collected 57 items

tests/test_binding.py::test_resolve_all PASSED                           [  1%]
tests/test_binding.py::test_full PASSED                                  [  3%]
tests/test_check_health.py::test_check_health_get PASSED                 [  5%]
tests/test_check_health.py::test_check_health_post PASSED                [  7%]
tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring PASSED [  8%]
tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring_wrapper PASSED [ 10%]
tests/test_db_monitoring.py::Test_db_monitoring::test_sendControlLoopEvent PASSED [ 12%]
tests/test_get_logger.py::test_configure_logger PASSED                   [ 14%]
tests/test_get_logger.py::test_configure_logger_with_name PASSED         [ 15%]
tests/test_htbt_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 17%]
tests/test_htbt_exit.py::test_cleanup_and_exit::test_normal_exit PASSED  [ 19%]
tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_env_present PASSED [ 21%]
tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_fallback_env_present PASSED [ 22%]
tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_poll_cbs PASSED [ 24%]
tests/test_htbt_http_session.py::test_init_session_obj::test_correct_usage PASSED [ 26%]
tests/test_htbt_runtime_pid.py::test_save_pid::test_correct_usage PASSED [ 28%]
tests/test_htbt_runtime_pid.py::test_save_pid::test_missing_directory PASSED [ 29%]
tests/test_htbt_runtime_pid.py::test_rm_pid::test_correct_usage PASSED   [ 31%]
tests/test_htbt_runtime_pid.py::test_rm_pid::test_missing_file PASSED    [ 33%]
tests/test_htbt_settings.py::test_cleanup_and_exit::test_config_dict PASSED [ 35%]
tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_expires PASSED [ 36%]
tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_to_name PASSED [ 38%]
tests/test_htbt_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 40%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_cbspolling PASSED    [ 42%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmon_startup PASSED [ 43%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmonitoring PASSED  [ 45%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_fetch_json_file PASSED [ 47%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_misshtbtdmain PASSED [ 49%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ABATED PASSED [ 50%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ONSET PASSED [ 52%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ABATED PASSED [ 54%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ONSET PASSED [ 56%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_hb_common PASSED [ 57%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_1 PASSED [ 59%]
tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_2 PASSED [ 61%]
tests/test_htbtworker.py::Test_htbtworker::test_check_process_reconfiguration PASSED [ 63%]
tests/test_htbtworker.py::Test_htbtworker::test_commit_and_close_db PASSED [ 64%]
tests/test_htbtworker.py::Test_htbtworker::test_create_and_check_vnf2_table PASSED [ 66%]
tests/test_htbtworker.py::Test_htbtworker::test_get_eventnamelist PASSED [ 68%]
tests/test_htbtworker.py::Test_htbtworker::test_new_vnf_entry PASSED     [ 70%]
tests/test_htbtworker.py::Test_htbtworker::test_parse_event PASSED       [ 71%]
tests/test_htbtworker.py::Test_htbtworker::test_postgres_db_open PASSED  [ 73%]
tests/test_htbtworker.py::Test_htbtworker::test_process_msg PASSED       [ 75%]
tests/test_htbtworker.py::Test_htbtworker::test_sql_executor PASSED      [ 77%]
tests/test_misshtbtd.py::Test_misshtbtd::test_create_database PASSED     [ 78%]
tests/test_misshtbtd.py::Test_misshtbtd::test_create_process PASSED      [ 80%]
tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_db PASSED    [ 82%]
tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_hb_common PASSED [ 84%]
tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_vnf_table_1 PASSED [ 85%]
tests/test_misshtbtd.py::Test_misshtbtd::test_db_table_creation_check PASSED [ 87%]
tests/test_misshtbtd.py::Test_misshtbtd::test_fetch_json_file PASSED     [ 89%]
tests/test_misshtbtd.py::Test_misshtbtd::test_main PASSED                [ 91%]
tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_common PASSED      [ 92%]
tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_env PASSED [ 94%]
tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_file PASSED [ 96%]
tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_exception_handling PASSED [ 98%]
tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_from_file PASSED [100%]

- generated xml file: /w/workspace/dcaegen2-services-heartbeat-tox-merge-master/xunit-results.xml -

---------- coverage: platform linux, python 3.8.14-final-0 -----------
Name                                           Stmts   Miss  Cover
------------------------------------------------------------------
miss_htbt_service/__init__.py                      0      0   100%
miss_htbt_service/cbs_polling.py                  34      6    82%
miss_htbt_service/check_health.py                 24      4    83%
miss_htbt_service/db_monitoring.py               136     15    89%
miss_htbt_service/get_logger.py                   20      0   100%
miss_htbt_service/htbtworker.py                  150     35    77%
miss_htbt_service/misshtbtd.py                   248     48    81%
miss_htbt_service/mod/__init__.py                  0      0   100%
miss_htbt_service/mod/htbt_exit.py                12      2    83%
miss_htbt_service/mod/htbt_get_cbs_config.py      56     13    77%
miss_htbt_service/mod/htbt_http_session.py        10      2    80%
miss_htbt_service/mod/htbt_io.py                   7      0   100%
miss_htbt_service/mod/htbt_runtime_pid.py         21      3    86%
miss_htbt_service/mod/htbt_settings.py            51      0   100%
miss_htbt_service/mod/htbt_vnf_table.py          140     23    84%
------------------------------------------------------------------
TOTAL                                            909    151    83%
Coverage XML written to file coverage.xml

======================== 57 passed in 603.68s (0:10:03) ========================
